import request from '@/utils/request'

const api = {
  login(sendData) {
    return request({
      url: '/login',
      method: 'POST',
      data: sendData,
    })
  },
  getInfo(sendData) {
    return request({
      url: '/system/user/getInfo',
      method: 'get',
    })
  },
  logout(sendData) {
    return request({
      url: '/logout',
      method: 'post',
    })
  },

  getWxConfig() {
    return request({
      url: '/wx/getWxConfig',
      method: 'POST',
      data: {
        url: window.location.href.replace(window.location.hash, ''),
      },
    })
  },

}
export default api
